﻿<BaseControl:DialogControl x:Class="jSLApp.Client.Forms.SendMail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:BaseControl="clr-namespace:jSLCore.Client.Presentation.BaseControl;assembly=jSLCore.Client.Presentation" xmlns:rad="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:j="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation"
                           xmlns:jBinding="clr-namespace:jSLCore.Client.Presentation.jBinding;assembly=jSLCore.Client.Presentation"
                           xmlns:BaseValidationRules="clr-namespace:jSLCore.Client.Presentation.jBinding.BaseValidationRules;assembly=jSLCore.Client.Presentation"
                           mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Width="350" MaxHeight="400">
    <j:ImageGroupBox Header="Contacting">
        <rad:RadDockPanel LastChildFill="True">
            <j:HelpBox Text="Please, provide your email address within the message" rad:RadDockPanel.Dock="Bottom"/>
            <j:HelpBox Text="Press 'Enter' to send the message" rad:RadDockPanel.Dock="Top"/>
            <TextBox AcceptsReturn="True" Name="txt" MinHeight="200" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap">
                <BaseControl:BaseControl.jBinding>
                    <jBinding:jNullContextBinding>
                        <BaseValidationRules:jNotEmptyStringRule ErrorText="Message can not be empty"/>
                    </jBinding:jNullContextBinding>
                </BaseControl:BaseControl.jBinding>
            </TextBox>
        </rad:RadDockPanel>
    </j:ImageGroupBox>
</BaseControl:DialogControl>
